package com.grass.cropTradingCenter.pojo.vo.shop;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
public class GoodsListVo {

    @Min(value = 1, message = "分页页码必须大于0")
    @Max(value = Integer.MAX_VALUE, message = "分页页码必须小于等于" + Integer.MAX_VALUE)
    @ApiModelProperty(value = "分页页码", required = true)
    private int pageNum;

    @Min(value = 1, message = "分页大小必须大于0")
    @Max(value = 50, message = "分页大小必须小于等于50")
    @ApiModelProperty(value = "分页大小（范围[1, 50]）", required = true)
    private int pageSize;

    private String key;

    @ApiModelProperty("10--全部  0--待审核  1--审核通过  2--审核未通过")
    private int state;


    @ApiModelProperty("10--全部  0--已下架  1--已上架")
    private int sellFlag;
}
